package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 上下机记录 Entity定义
 * @author hem
 * @version 1.0
 * @date 2023-06-19
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("clock_in")
public class ClockIn extends BaseCustomEntity {

    private static final long serialVersionUID = 3585768860218713942L;

    /**
     * 操作工
     */
    @TableField()
    private Long userId;

    /**
     * 操作工名称
     */
    @Length(max = 100, message = "操作工名称长度应小于100")
    @TableField()
    private String userName;

    /**
     * 工艺/工序名称
     */
    @Length(max = 20, message = "工艺/工序名称长度应小于20")
    @TableField()
    private String techName;

    /**
     * 1上机0下机
     */
    @TableField()
    private Integer operated;

    /**
     * 是否交班，0为未交班，1为交班
     */
    @TableField()
    private Integer isChangeWork;

    /**
     * 好件产出
     */
    @TableField()
    private Long goodQuantity;

    /**
     * 产出
     */
    @TableField()
    private Long output;

    /**
     * 坏件产出
     */
    @TableField()
    private Long badQuantity;

    /**
     * 设备编号
     */
    @Length(max = 100, message = "设备编号长度应小于100")
    @TableField()
    private String equipmentNumber;

    /**
     * 任务单号
     */
    @Length(max = 100, message = "任务单号长度应小于100")
    @TableField()
    private String taskNum;

    /**
     * 工艺id
     */
    @TableField()
    private Long techniqueId;

    /**
     * 上机记录id
     */
    @TableField()
    private Long pid;
}
